﻿<%--收银--%>
<div id="dlgtoolbar">
		<table cellpadding="0" cellspacing="0" style="width:100%">
			<tr>
				<td style="text-align:right;padding-right:2px">
					[<a style="color:blue;font-size:12px">(应收金额 + 滞纳金) - (上次余额 + 上次滞纳金) - 优惠金额 = 实收金额 - 本次余额</a>]  <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="dlg_cashmanager_additemshow();">新增项目</a>
				</td>			
			</tr>
		</table>
	</div>
<div id="dlg-cash" class="easyui-dialog" title="收银" style="width:780px;height:500px;padding:0px" resizable="true" modal="true">
    <div class="easyui-layout" fit="true">  
    <div region="north" style="padding:5px;background:#efefef;"  border="false">
        <table style="width: 100%;">
            <tr>
                <td  align="right">名称：</td>
                <td ><a id="cash_srccname" style="color: #0000FF" /></td>
                <td  align="right">面积：</td>
                <td ><a id="cash_usearea" style="color: #0000FF"/></td>
                <td  align="right">姓名：</td>
                <td ><a id="cash_ownername" style="color: #0000FF"/></td>
                <td  align="right">联系电话：</td>
                <td ><a id="cash_OftenMobile" style="color: #0000FF"/></td>
                <td  align="right">身份证号：</td>
                <td ><a id="cash_CardNum" style="color: #0000FF"/></td>
            </tr>
        </table>
        
	</div>
	
	<div region="south" style="height:210px;padding:10px;background:#efefef;">
        <table style="width: 100%; font-size:18px;">
            <tr>
                <td align="right">本次总金额：</td>
                <td>
                    <input id="txtTotalFee" class="easyui-numberbox" disabled="true" precision=2 style="width:200px; text-align:right; color:Blue;font-size:18px; font-weight: bold;" type="text" required="true"></input>
                </td>
            </tr>
            <tr>
                <td align="right">优惠金额：</td>
                <td>
                   <input id="txtFavourFee" class="easyui-numberbox" disabled="true" precision=2 style="width:200px; text-align:right;color:Blue; font-size:18px; font-weight: bold;" type="text"  required="true"></input>
                </td>
            </tr>
            <tr>
                <td align="right">实收金额：</td>
                <td>
                    <input id="txtRealityFee" class="easyui-numberbox" disabled="true" precision=2 style="width:200px; text-align:right;color:Blue;font-size:18px; font-weight: bold;" type="text"  required="true"></input>
                </td>
            </tr>
            <tr>
                <td align="right">现金：</td>
                <td>
                    <input id="txtcash" class="easyui-numberbox" precision=2 style="width:200px; text-align:right; color:Red;font-size:18px; font-weight: bold;" type="text"  required="true"></input></td>
            </tr>
            <tr>
                <td align="right">找零：</td>
                <td>
                    <input id="txtchange" class="easyui-numberbox" disabled="true" precision=2 style="width:200px; text-align:right;color:Red;font-size:18px; font-weight: bold;" type="text"  required="true"></input></td>
            </tr>
            <tr>
                <td>
                    </td>
                <td>
                    <div>
		                <a href="#" class="easyui-linkbutton" onclick="dlg_statitem_queding()">确定</a>
		                <a href="#" class="easyui-linkbutton" onclick="$('#dlg-cash').dialog('close');">取消</a>
	                </div></td>
            </tr>
        </table>
	</div>
	
	<div region="center" style="overflow:hidden;" border="false">
	    <table id="srccitemGird" class="easyui-datagrid" toolbar="#dlgtoolbar" fit="true" border="false" showFooter="true" rownumbers="true"  iconCls="icon-edit">
		   <thead>
			<tr>
			   
			    <th field="ck" checkbox="true" width="20"></th>
				<th field="ItemCode" width="40">编码</th>
				<th field="ItemName" width="100" >项目名称</th>
				<%--<th field="Price" width="60">计费单价</th>
				<th field="ThisNum" width="60" >本次用量</th>
				<th field="Lastmaturity" width="70" formatter="Dateformatter">上次到期日</th>
				<th field="Thismaturity" width="70" formatter="Dateformatter">本次到期日</th>--%>
				<th field="Lastsurplus" width="60" styler="FeeStyler" align="right"><a style="color:#336600">上次余额</a></th>
				<th field="LastLateFee" width="60" styler="FeeStyler" align="right"><a style="color:#336600">上次滞纳金</a></th>
				<th field="ThisCostFee" width="60" styler="FeeStyler" align="right"><a style="color:blue">应收金额</a></th>
				<th field="ThisLateFee" width="60" styler="FeeStyler" align="right"><a style="color:blue">滞纳金</a></th>
				<th field="FavourFee" width="60" styler="FeeStyler" align="right"><a style="color:red">优惠金额</a></th>
				<th field="RealityFee" width="60" styler="FeeStyler" align="right"><a style="color:red">实收金额</a></th>
				<th field="PrepayFee" width="60" styler="FeeStyler" align="right"><a style="color:red">本次余额</a></th>
				<th field="oper" formatter="operFormatter" width="130" align="center">操作</th>
			</tr>
		</thead>
	    </table>
	</div>
</div>
</div>

<%--添加项目--%>
<div id="dlg-button2" style="display:none">           
	<a href="#" class="easyui-linkbutton" onclick="dlg_additem_queding();">修改</a>
	<a href="#" class="easyui-linkbutton" onclick="$('#dlg-additem').dialog('close');">取消</a>   
</div>
<div id="dlg-additem" title="添加项目" class="easyui-dialog" buttons="#dlg-button2" icon="icon-save" style="background:#fafafa;padding:2px;width:700px;height:480px;" modal="true">
<div class="easyui-layout" fit="true">
    <div region="west"  style="background:#fafafa;width:314px;padding:2px;" border="false" >
      <table>
       <tr>
            <td><label>编码:</label></td>
            <td><input id="dlg_additem_ItemCode" class="easyui-validatebox" disabled="true" style="width:200px" type="text" required="true"></input></td>
       </tr>
       <tr>
            <td><label>项目名称:</label></td>
            <td><input id="dlg_additem_ItemName" class="easyui-combobox" disabled="true"  valueField="Code" textField="ItemName" style="width:200px" type="text" required="true"></input></td>
       </tr>
       <tr>
            <td><label>计费单价:</label></td>
            <td><input id="dlg_additem_Price" class="easyui-numberbox" precision=2 disabled="true" style="width:200px" type="text" required="true"></input></td>          
       </tr>      
       <tr>
            <td><label>本次用量:</label></td>
            <td><input id="dlg_additem_ThisNum" class="easyui-numberbox" disabled="true" style="width:200px" type="text" required="true"></input></td>          
       </tr>
       <tr>
            <td><label>上次到期日:</label></td>
            <td><input id="dlg_additem_Lastmaturity" class="easyui-datebox" disabled="true" style="width:200px" type="text" required="true"></input></td>          
       </tr>
       <tr>
            <td><label>本次到期日:</label></td>
            <td><input id="dlg_additem_Thismaturity" class="easyui-datebox" disabled="true" style="width:200px" type="text" required="true"></input></td>          
       </tr>
       <tr>
            <td><label>应收金额:</label></td>
            <td><input id="dlg_additem_ThisCostFee" class="easyui-numberbox" precision=2 disabled="true" style="width:200px" type="text" required="true"></input></td>          
       </tr>
       <tr>
            <td><label>滞纳金:</label></td>
            <td><input id="dlg_additem_ThisLateFee" class="easyui-numberbox" precision=2 disabled="true" style="width:200px" type="text" required="true"></input></td>          
       </tr>
       <tr>
            <td><label>优惠金额:</label></td>
            <td><input id="dlg_additem_FavourFee" class="easyui-numberbox" precision=2 disabled="true" style="width:200px" type="text" required="true"></input></td>          
       </tr>
       <tr>
            <td><label>实收金额:</label></td>
            <td><input id="dlg_additem_RealityFee" class="easyui-numberbox" precision=2 disabled="true" style="width:200px" type="text" required="true"></input></td>          
       </tr>
       <tr>
            <td><label>本次余额:</label></td>
            <td><input id="dlg_additem_PrepayFee" class="easyui-numberbox" precision=2 disabled="true" style="width:200px" type="text" required="true"></input></td>          
       </tr>
       
       </table>
       <input id="dlg_additem_ItemType" type="hidden" />
       <input id="dlg_additem_Lastsurplus" type="hidden" />
       <input id="dlg_additem_LastLateFee" type="hidden" />
       <input id="dlg_additem_Index" type="hidden" />
       <input id="dlg_additem_SrccId" type="hidden" />
       <input id="dlg_additem_HeadId" type="hidden" />
       <input id="dlg_additem_OwnerId" type="hidden" />
       <input id="dlg_additem_OwnerName" type="hidden" />
	</div>
	<div region="south" style="background:#fafafa;height:80px;padding:0px;" border="false">
	   <table>
	    <tr>
            <td><label>备注:</label></td>
            <td><textarea id="dlg_additem_memo" cols="20" style="width:600px" rows="2"></textarea></td>          
       </tr>
       </table>
	</div>
	<div region="center" border="false" >
	     <table id="itemheadlistGird"  class="easyui-datagrid" fit="true" border="false"  singleSelect="true">
	             <thead>
		            <tr>
			            <%--<th field="SrccSonId" width="100">名称</th>--%>
			            <%--<th field="ItemName" width="80">项目名称</th>--%>
			            <th field="Lastmaturity" width="75">上次到期日</th>
			            <th field="Thismaturity" width="75">本次到期日</th>
			            <%--<th field="Price" width="80">单价</th>--%>
			            <%--<th field="DosageNum" width="100">用量</th>--%>
			            <th field="CostFee" width="80">金额</th>
			            <th field="LateFee" width="80">滞纳金</th>
		            </tr>
	            </thead>
	       </table>
	</div>
</div>
    
</div>